import './assets/base.css'
import 'vant/lib/index.css';
import { createApp } from 'vue'
import { createPinia } from 'pinia'
//数据持久化
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import App from './App.vue'
import router from './router'
// 图片懒加载
import { Lazyload } from 'vant';
import Vant from 'vant';

import VideoPlayer from 'vue-video-player'
import 'element-plus/dist/index.css'
import ElementPlus from 'element-plus'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import 'vue-video-player/src/custom-theme.css'
import 'video.js/dist/video-js.css'
import TDesign from 'tdesign-mobile-vue';
import 'ant-design-vue/dist/reset.css';
import Antd from 'ant-design-vue';
const app = createApp(App)

const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)

app.use(pinia)
app.use(router)
// 图片懒加载
app.use(Lazyload);
app.use(Lazyload, {
    lazyComponent: true,
  });
app.use(Vant)
app.use(VideoPlayer)
app.use(TDesign)
app.use(ElementPlus)
app.use(Antd)
app.mount('#app')
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }
